#include "ADUCoin.h"

ADUCoin::ADUCoin() {

}

ADUCoin::~ADUCoin() {

}

ADUCoin* ADUCoin::CreateCoinBYFileName(const char* filename) {
	ADUCoin* car = new ADUCoin();
	if (car && car->initWithFile(filename)) {
		car->autorelease();
		return car;
	}
	CC_SAFE_DELETE(car);
	return NULL;
}

int ADUCoin::getSpeed(){
	return roadSpeed;
}

void ADUCoin::onSpeedchanged(int newSpeed){
	roadSpeed = newSpeed;
	run();
}
